package com.hyx.bookManager.mapper;

import com.hyx.bookManager.domain.po.MonitorImage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
@Component
public interface MonitorMapper {
    boolean insertMonitorImg(@Param("id")int id, @Param("fileName")String fileName, @Param("time")LocalDateTime time);

    List<MonitorImage> getMonitor(@Param("start") LocalDate start, @Param("end") LocalDate end, @Param("page") Long page, @Param("pageSize") Long pageSize);

    Long getTotalPage(@Param("startTime") LocalDate startTime,@Param("endTime") LocalDate endTime);
}
